#ifndef SPACE_H
#define SPACE_H

#include <vector>
#include <list>
#include <GL/glut.h>

class Vertex{
public:
   float _x, _y, _z;
   unsigned int _idx;
   Vertex(float x, float y, float z, unsigned int idx);

};


class UnitCube{
public:	
   unsigned int _vertIdx[8];
   UnitCube(unsigned int baseIdx,
	    unsigned int widthVertNums,
	    unsigned int heightVertNums);
};


void testValition(void);

bool NewSpace( float unitSize, int xCubeNums, int yCubeNums, int
zCubeNums, std::vector<Vertex>& vertVector, std::vector<UnitCube>&
cubeVector);

void AttachCubeToDrawList(const UnitCube& cube, std::list<GLuint>& list);

#endif//SPACE_H
